{% load staticfiles %}
<!DOCTYPE html>

<html lang="zh-CN">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>四通智能多网融合项目管理系统</title>

    <!-- Bootstrap core CSS -->
    <link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="{% static "css/dashboard.css" %}" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="{% static "js/ie8-responsive-file-warning.js" %}"></script><![endif]-->
    <script src="{% static "js/ie-emulation-modes-warning.js" %}"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="{% static "js/html5shiv.min.js" %}"></script>
      <script src="{% static "js/respond.min.js" %}"></script>
    <![endif]-->
</head>
  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid" data-unuse="1">
        <div class="navbar-header" data-unuse="1">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">四通智能多网融合项目管理系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse" data-unuse="1">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">你好，{{username}}</a></li>
            <li><a href="/logout/">退出</a></li>
          </ul>
         
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar" data-unuse="1">
{% block page-menu %}
          <ul class="nav nav-sidebar">
            <li class="active"><a href="/index/">项目信息 <span class="sr-only">(current)</span></a></li>
            <li ><a href="/device_list/">设备信息 <span class="sr-only">(current)</span></a></li>
          </ul>
{% endblock %}
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  	{% block page-content %}
          <h2 class="sub-header">项目信息</h2>
          <div class="table-responsive" data-unuse="1">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>ID</th>
                  <th>项目名称</th>
                  <th>施工地点</th>
                  <th>施工单位</th>
                  <th>启动时间</th>
                  <th>竣工时间</th>
                  <th>项目设备信息</th>
                </tr>
              </thead>
              <tbody>
              {%for project in projects %}
                <tr>
                  <td>{{project.id}}</td>
                  <td><a href="/proj_detail/{{project.id}}" title="点击查看详情">{{project.pname}}</a></td>
                  <td>{{project.position}}</td>
                  <td>{{project.comp}}</td>
                  <td>{{project.startTime}}</td>
                  <td>{{project.finishedTime}}</td>
                  <td><a href="/project_device/{{project.id}}">项目设备</a></td>
                </tr>
                {%endfor%}
              </tbody>
            </table>
          </div>
        </div>
      </div>
      {%endblock%}
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="{% static "js/jquery-1.11.3.min.js" %}"></script>
    <script src="{% static "js/bootstrap.min.js" %}"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="{% static "js/ie10-viewport-bug-workaround.js" %}"></script>
  